#by Sash & Chrissiimport maya.cmds as cmdssel = cmds.ls(sl=True)bs_name = 'bert_'i = 1for obj in sel:    tempname = (bs_name + str(i))    cmds.rename  (obj,tempname)    i = i+1    print i